import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { WheelSelector } from '@ionic-native/wheel-selector';
import { Governor } from './app.component';


import { TabsPage } from '../pages/tabs/tabs';
import { HomePage } from '../pages/home/home';
import { EngineersPage } from '../pages/engineers/engineers';
import { engineersdetailPage } from '../pages/engineersdetail/engineersdetail';
import { newdetailPage } from '../pages/newdetail/newdetail';
import { NewsPage } from '../pages/news/news';
import { SupervisionLogPage } from '../pages/supervisionLog/supervisionLog';
import { LoginPage } from '../pages/login/login';
import { LogPage } from '../pages/log/log';
import { DocumentsPage } from '../pages/documents/documents';
import {supervisiondocPage} from '../pages/supervisiondoc/supervisiondoc';
import {approvaldetailPage} from '../pages/approvaldetail/approvaldetail';
import {returntaskPage} from '../pages/returntask/returntask';
//atest
import {atestPage} from '../pages/atest/atest';

import { Api } from '../providers/api';
import { WeChatApi } from '../providers/wechatapi';
import { supervisionlogApi } from '../providers/supervisionlog';
import { PubApi } from '../providers/pubapi';
import { Fun } from '../providers/fun';



export function providers() {
    return [
        Api,
        WeChatApi,
        supervisionlogApi,
        PubApi,
        Fun,
         WheelSelector,//test
     

        { provide: ErrorHandler, useClass: IonicErrorHandler }
    ];
}

@NgModule({
    declarations: [
        Governor,
        TabsPage,
        HomePage,
        EngineersPage,
        NewsPage,
        SupervisionLogPage,
        LoginPage,
        newdetailPage,
        engineersdetailPage,
        DocumentsPage,
        LogPage,
        supervisiondocPage,
        approvaldetailPage,
        returntaskPage
        ,atestPage //test
  
    
    ],
    imports: [
        IonicModule.forRoot(Governor, {
            backButtonText: '',
            iconMode: 'ios',
            mode: 'ios'
        }, {})
    ],
    bootstrap: [IonicApp],
    entryComponents: [
        Governor,
        TabsPage,
        HomePage,
        EngineersPage,
        NewsPage,
        SupervisionLogPage,
        LoginPage,
        newdetailPage,
        engineersdetailPage,
        DocumentsPage,
        LogPage,
        supervisiondocPage,
        approvaldetailPage,
        returntaskPage
          ,atestPage //test
        
    
    ],
    providers: providers()
})
export class AppModule { }
